<!--
 * @Author: liaoxing
 * @Date: 2021-11-24 10:10:51
 * @LastEditors: liaoxing
 * @LastEditTime: 2022-03-07 16:18:50
 * @Description: liaoxing created
 * @FilePath: \pin-xin-admin\src\App.vue
-->
<template>
  <div id="app" @click.left="cancelEvent">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  metaInfo() {
    return {
      title:
        this.$store.state.settings.dynamicTitle &&
        this.$store.state.settings.title,
      titleTemplate: (title) => {
        return title
          ? `${title} - ${process.env.VUE_APP_TITLE}`
          : process.env.VUE_APP_TITLE
      },
    }
  },
  methods: {
    cancelEvent() {
      window.cancelInnerEvent.forEach((element) => {
        element()
      })
    },
  },
}
</script>
